(function() {
	Path.on("/user/__basename__.html", function(_current_location) {
		App.set('title', '物流查询');
		var queryString = _current_location.query;
		var _id = queryString.get("id");
		var num = queryString.get('num');
		var com = queryString.get('com');
		App.set('$Cache.user.express.order_id', _id);
		App.set('$Cache.user.express.express_num', num);
		App.set('$Cache.user.express.com', com);
		if (!_id) {
			alert("warn", "订单号不可为空！！！");
			Path.jump("/user/order.html");
			return;
		};
		if (num) {
			coAjax.get(appConfig.server_url + "express_search", {
				num: num,
				company: com
			}, function(result) {
				console.log(result.result);
				App.set("$Cache.user.express.express_data", result.result);
			});
		};
	});
}());